﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Game.Classes;

namespace Game.Controls
{

    public partial class controlTutorial : UserControl
    {
        public int tutorialStep = 1;

        public controlTutorial(Form fenster)
        {
            InitializeComponent();

            Session.loadFont();

            btStepper.Font = Session.buttonFont;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (tutorialStep == 1)
                pbTutorial.Image = Game.Properties.Resources._02;
            if (tutorialStep == 2)
                pbTutorial.Image = Game.Properties.Resources._03;
            if (tutorialStep == 3)
                pbTutorial.Image = Game.Properties.Resources._04;
            if (tutorialStep == 4)
                pbTutorial.Image = Game.Properties.Resources._05;
            if (tutorialStep == 5)
                pbTutorial.Image = Game.Properties.Resources._06;
            if (tutorialStep == 6)
                pbTutorial.Image = Game.Properties.Resources._07;
            if (tutorialStep == 7)
                pbTutorial.Image = Game.Properties.Resources._08;
            if (tutorialStep == 8)
                pbTutorial.Image = Game.Properties.Resources._09;
            if (tutorialStep == 9)
                pbTutorial.Image = Game.Properties.Resources._10;
            if (tutorialStep == 10)
                pbTutorial.Image = Game.Properties.Resources._11;
            if (tutorialStep > 10)
                Session.fenster.showMenu();

            tutorialStep++;
        }

        private void btStepper_MouseEnter(object sender, EventArgs e)
        {
            btStepper.Image = Game.Properties.Resources.button_hover;
        }

        private void btStepper_MouseLeave(object sender, EventArgs e)
        {
            btStepper.Image = Game.Properties.Resources.button;
        }
    }
}
